package com.hopu.wuliu_demo.controller;

import com.hopu.wuliu_demo.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class LogisticsController {

    @Autowired
    private LogisticsService logisticsService;

    @RequestMapping("/findAllLogistics")
    public String findAll(Model model){
        model.addAttribute("logistics",logisticsService.findAllLogistics());
        return "logistics";
    }
}
